package com.fulihui.wgj.admin.integration;

import com.fulihui.common.result.web.Result;
import com.fulihui.wgj.admin.api.subscribereply.request.*;
import com.fulihui.wgj.admin.api.subscribereply.vo.SubscribeReplyVO;

import java.util.List;

/**
 * @author: JY
 * @date: 2018/7/5 9:24
 */
public interface SubscribeReplyClient {

    /**
     * 查询默认回复
     *
     * @param replyReq
     * @return
     */
    Result<SubscribeReplyVO> queryDefaultReply(SubscribeReplyRequest replyReq);

    /**
     * 查询特定回复
     *
     * @param replyReq
     * @return
     */
    Result<List<SubscribeReplyVO>> querySpecificReply(SubscribeReplyRequest replyReq);

    /**
     * 保存
     *
     * @param request
     */
    Result<Boolean> save(SubscribeReplySaveRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    Result<Boolean> update(SubscribeReplyUpdateRequest request);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    Result<Boolean> delete(Integer id);

    /**
     * 启用或者禁用
     *
     * @param id
     * @return
     */
    Result<Boolean> enableOrDisabled(Integer id, Integer useful);

    /**
     * 预览
     *
     * @param replyReq
     * @return
     */
    Result<SubscribeReplyVO> preview(SubscribeReplyQueryRequest replyReq);

    /**
     * 发送到手机预览
     *
     * @param replyReq
     * @return
     */
    Result<Boolean> sendPre(SubscribeReplySendPreRequest replyReq);

}
